package com.android.danaobank.mvp.presenter;

import com.android.danaobank.api.ApiClient;
import com.android.danaobank.model.HttpResponse;
import com.android.danaobank.model.response.MiddleClass;
import com.lg.meng.base.BaseSingleListPresenter;
import com.lg.meng.base.BaseSingleListView;

import java.util.List;

public class MallRecommentMiddleClassPresenter extends BaseSingleListPresenter<
        HttpResponse<List<MiddleClass>>, MiddleClass, BaseSingleListView<HttpResponse<List<MiddleClass>>, MiddleClass>
        > {
    @Override
    public void loadData() {
        loadData(ApiClient.getInstance().getMiddleClass());
    }

    @Override
    protected List<MiddleClass> getList(HttpResponse<List<MiddleClass>> datas) {
        return datas.getData();
    }
}
